package adhoc.tel.fer.hr;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferencesHelper {
	private static SharedPreferences messagingSettings;
	private static SharedPreferences.Editor editor;

	public static final String AUTH = "registrationID"; 
	
	public static void initialize(Context context){
		//opening position settings
		messagingSettings = context.getSharedPreferences("drumset_activation_data", Context.MODE_PRIVATE);
		editor = messagingSettings.edit();
	}
	
	public static String getC2DRegistrationID() {
		return messagingSettings.getString(AUTH, null);
	}
	
	public static void setC2DRegistrationID(String registrationID){
		editor.putString(AUTH, registrationID);
		editor.commit();
	}
}
